/*
 * @name: 
 * @version: 1.1.1
 * @Author: 刘大可
 * @Date: 2022-08-26 10:08:41
 * @LastEditors: 刘大可
 * @LastEditTime: 2022-09-19 16:18:59
 */
import siteinfo from '@/siteinfo.js'; 







let baseUrl = "";
let socketUrl = siteinfo.url.replace('http', "ws").replace("/api/", "/wss");
let wxapp_id = siteinfo.uniacid;


console.log(wxapp_id);
if (process.env.NODE_ENV === 'development') {
	// 开发环境
	// baseUrl = "https://fl.fkynet.net/";
	// socketUrl = "ws://localhost:6001/";
	// baseUrl = "https://twin-ui.com/demo/";
	// socketUrl = "wss://ptsocket.fkynet.net";
} else if (process.env.NODE_ENV === 'production') {
	// 生产环境
	// baseUrl = "https://fl.fkynet.net/";
	// baseUrl = "https://twin-ui.com/demo/";
	// socketUrl = "wss://ptsocket.fkynet.net";
}
const courtConfig = {
	//微信公众号APPID
	publicAppId: "",
	//请求接口
	baseUrl: baseUrl,
	wxappId: wxapp_id,
	//webSocket地址
	socketUrl: socketUrl,
	//平台名称
	platformName: "社区跑腿",
	//项目logo
	logoUrl: baseUrl + "/static/web/img/logo.png",
	//页面分享配置
	share: {
		title: '社区跑腿',
		// #ifdef MP-WEIXIN
		path: '/pages/home/home', //小程序分享路径
		// #endif
		// #ifdef H5 || APP-PLUS
		//公众号||APP分享
		desc: "社区跑腿", // 分享描述
		link: " ", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
		imgUrl: "", // 分享图标
		// #endif
	}
};
//手机号验证正则表达式
const phoneRegular = /^1\d{10}$/;
//邮箱验证正则表达式
const mailRegular = /^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/;
//密码验证正则表达式
const passwordRegular = /^[a-zA-Z0-9]{4,10}$/;
export default Object.assign({
	phoneRegular,
	mailRegular,
	passwordRegular
}, courtConfig);
